package com.lan.test02;

//老师类
public class Teacher {
    private String name;
    private Integer age;
    private String subject;

    public Teacher() {
    }

    public Teacher(String name, Integer age, String subject) {
        this.name = name;
        this.age = age;
        this.subject = subject;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }


    public String teach(Integer time){
        System.out.println("今天上课了"+time+"小时");
        return "good good study，day day up!";
    }
}
